package com.tchintech.pay.delegate;

import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.tchintech.pay.R;
import com.tchintech.pay.frame.view.AppDelegate;

import butterknife.Bind;

/**
 * Created by Administrator on 2017/8/5 0005.
 */

public class BoundcaedActivityDelegate extends AppDelegate {
    @Bind(R.id.tv_title)
    TextView tv_title;
    @Bind(R.id.iv_back)
    ImageView imageView;

    @Bind(R.id.ed_name)
    EditText ed_name;
    @Bind(R.id.ed_banknum)
    EditText ed_banknum;
    @Bind(R.id.ed_usernum)
    EditText ed_usernum;
    @Bind(R.id.ed_bankname)
    EditText ed_bankname;
    @Bind(R.id.ed_bankphone)
    EditText ed_bankphone;
    @Bind(R.id.ed_bankaddress)
    EditText ed_bankaddress;
    @Bind(R.id.ed_address)
    EditText ed_address;
    @Bind(R.id.bt_submit)
    Button bt_submit;


    public void setTv_title(String str) {
        tv_title.setText(str);
    }

    public void setVisible() {
        imageView.setVisibility(View.VISIBLE);
    }

    @Override
    public int getRootLayoutId() {
        return R.layout.activity_boundcard;
    }

    public String getEdittext(int id) {
        EditText et = get(id);
        String str = et.getText().toString().trim();
        return str;
    }

    public EditText getEdit() {
        return ed_bankname;
    }


}
